package com.lagou.rpc.consumer.conf;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Data
@ConfigurationProperties(prefix = "rpc")
public class ServerInfoConfig {

    private List<Config> configs;

    @Data
    public static class Config {
        private String ip;
        private Integer port;
    }

}
